package cn.csc.module.product.controller.admin.spuskuattr.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;

/**
* 商品sku销售属性关联信息 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class SpuSkuAttrValueBaseVO {

    @ApiModelProperty(value = "SPU ID", required = true)
    @NotNull(message = "SPU ID不能为空")
    private BigInteger spuId;

    @ApiModelProperty(value = "SKU ID", required = true)
    @NotNull(message = "SKU ID不能为空")
    private BigInteger skuId;

    @ApiModelProperty(value = "销售属性ID")
    private Integer attrId;

    @ApiModelProperty(value = "销售属性名称")
    private String attrName;

    @ApiModelProperty(value = "销售属性值ID")
    private Integer attrValueId;

    @ApiModelProperty(value = "销售属性值")
    private String attrValueName;

    @ApiModelProperty(value = "状态 1:enable, 0:disable, -1:deleted", required = true)
    @NotNull(message = "状态 1:enable, 0:disable, -1:deleted不能为空")
    private Byte status;

}
